﻿using System;
//using System.Text;

namespace Stauffware.Common.Core
{
	/// <summary>
	/// An error caused by a failed Parse.
	/// </summary>
	public class ParseException : Exception
	{
		/// <summary>
		/// The text on which a parse was attempted.
		/// </summary>
		public readonly string ParsedText;

		/// <summary>
		/// constructor
		/// </summary>
		/// <param name="errMsg">the error message</param>
		/// <param name="parsedText">The text on which a parse was attempted.</param>
		public ParseException (string errMsg, string parsedText)
			: base(errMsg)
		{
			this.ParsedText = parsedText;
		}
	}
}
